package org.southyin.securitysamples.mapper;

import org.apache.ibatis.annotations.Param;
import org.southyin.securitysamples.model.Category;

import java.util.List;

public interface CategoryMapper {
    int insertCategory(Category category);

    int delCategoryById(long id);

    int updateCategoryById(Category category);

    List<Category> listCategories(String keyWords);

    int multiDel(@Param("ids") long[] ids);

    int updateCategoryDelMark(Category category);

    int updateArticleStatus(Category category);

    List<Category> listEnabledCategory();
}
